@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "./transition.css";

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

svg,
img {
    display: inline;
}

/* el-tree组件setCurrentKey之后没有高亮，没有深究，先用这个修复 */
.el-tree .el-tree-node.is-current>.el-tree-node__content {
    background-color: #F5F7FA;
}

.el-input__inner {
    border-radius: 8px;
}

.el-icon-empty {
    width: 8px !important;
}

.el-menu--collapse .submenu-title-noDropdown .el-tooltip .svg-icon {
    margin-left: 12px !important;
}

.el-menu--collapse .el-submenu>.el-submenu__title .sub-el-icon {
    margin-left: 10px !important;
}

.el-menu.el-menu--popup {
    background: linear-gradient(180deg, #4B4E53 0%, #37393D 100%) !important;
}

.sidebar-container {
    background: linear-gradient(180deg, #4B4E53 0%, #37393D 100%);
}

.sidebar-logo-container {
    height: unset !important;
    line-height: unset !important;
    background: unset !important;
}

.sidebar-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sidebar-title {
    color: white !important;
    margin: 16px !important;
}

.el-menu {
    padding-top: 8px;
    padding-bottom: 8px;
}

.el-menu-item {
    color: white !important;
    min-width: 0 !important;
    border-radius: 4px;
    margin: 0 8px;
    height: 40px !important;
    line-height: 40px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.el-menu-item:hover {
    background-color: #515357 !important;
}

.el-menu-item.is-active {
    color: #333D4F !important;
    background-color: #FBE5BB !important;
    box-shadow: 0px 4px 10px rgba(251, 229, 187, 0.1);
}

.el-submenu .el-menu-item {
    height: 32px !important;
    line-height: 32px !important;
    margin: 8px;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.el-submenu .el-menu-item:not(.is-active):hover {
    color: #FBE5BB !important;
}

.el-submenu {
    margin: 0 8px;
    transition: background-color 0.35s;
}

.el-submenu .el-menu {
    /* background: unset !important; */
}

.el-submenu.is-opened {
    border-radius: 4px;
    background-color: #515357 !important;
}

.el-submenu__title {
    color: white !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-radius: 4px;
    user-select: none;
    margin: 8px 0;
    height: 40px !important;
    line-height: 40px !important;
}

.el-submenu__title:hover {
    background-color: #515357 !important;
}

.el-menu .el-menu {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}